﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GenerateDbApp
{



    public class DBDataDay
    {
        private string DateTimeLast;
        public List<DBData> Item;

        public DBDataDay()
        {
            DateTimeLast = "";
            Item = new List<DBData>();
        }
        public void Add(string Date_Temp, string Currency_Temp, double Value_Temp)
        {
            if (DateTimeLast == Date_Temp.Substring(0, 10))
                Item[Item.Count - 1].Values.Add(Value_Temp);
            else
            {
                DBData Node_Temp = new DBData(Date_Temp, Currency_Temp);
                Node_Temp.Add(Value_Temp);
                Item.Add(Node_Temp);
                DateTimeLast = Date_Temp.Substring(0, 10);
            }
        }
    }



}
